using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WqLunTan.Models.DataBase
{

    [Table("liuyanban")]
    public class liuyanban : BaseUpdateEntity
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid uid { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(50)]
        [Required(AllowEmptyStrings = true)]
        public string uname { get; set; } = string.Empty;

        /// <summary>
        /// ip地址
        /// </summary>
        [MaxLength(50)]
        [Required(AllowEmptyStrings = true)]
        public string ip { get; set; } = string.Empty;


        public bool is_show { get; set; }

        /// <summary>
        /// 留言内容
        /// </summary>
        [MaxLength(500)]
        [Required(AllowEmptyStrings = true)]
        public string content { get; set; } = string.Empty;
    }
}
